﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel;
using System.ServiceModel.Web;
using ApiPrototype.Handlers;
using ApiPrototype.Models;
using System.Security.Principal;

namespace ApiPrototype.APIs
{
    [ServiceContract]
    public class BBMededelingenApi
    {
        [WebGet, Authorization]
        public ApiResponse<List<STUDENT_BB_MEDEDELINGEN>> Get(int studentId, iphlEntities ctx)
        {
            var mededelingen = ctx.SP_GET_BBMEDEDELINGEN(studentId).ToList();
            return new ApiResponse<List<STUDENT_BB_MEDEDELINGEN>>(mededelingen);
        }
    }
}